import Actions from './actions';
import {CustomerDeliveryAddressVO} from 'api/CustomerDeliveryAddressBaseController';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  dateTime: string;
  remarks: string;
  list: lItem[];
  listSelected: number;
  dateModel: boolean;
  remarksModel: boolean;
  successModel: boolean;
  checked: boolean;
  daysArr: dItem[];
  daysSelected: number;
  timeArr: dItem[];
  timeSelected: number;
  address: CustomerDeliveryAddressVO;
  type: string;
  orderId: string;
  cancelModel: boolean;
  cancellationOptions: number; //取消类型
  cancellationReason: string; //取消原因
  orderNo: string;
}

export type lItem = {
  name: string;
};
export type dItem = {
  name: string;
};

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;

//create by moon https://github.com/creasy2010/moon
